<?php
class RoomsController
{
	public static function getAllRooms()
	{
		$query = 'SELECT SQL_CACHE * FROM rooms';
		$response = _database::toarray($query,'id');
		$rpc = RPC::_getInstance();
		$response[1]['start'] = time() + 5*60;
		$response['1']['start'] = time() + 5*60;
		$rpc->addResponse('rooms',$response);
	}
}